package com.ws.app.controller;

import java.util.List;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.ws.app.common.ControllerSupport;
import com.ws.app.entity.User;
import com.ws.app.service.UserService;

@Controller
public class UserController extends ControllerSupport {

    @Resource(name = "ws_app_userService")
    private UserService userService;

    @RequestMapping("/queryUser")
    public void queryUser(HttpServletRequest request,
            HttpServletResponse response) {
        List<User> users = userService.queryAllExpense(null, null, null);
        this.outputJSON(users, response);
    }

    public UserService getUserService() {
        return userService;
    }

    public void setUserService(UserService userService) {
        this.userService = userService;
    }

}
